package com.matt.foundation.vo.children;

import com.matt.domain.course.CoursePlanClasses;
import com.matt.domain.nursery.NurseryScheduleRecord;
import com.matt.foundation.vo.nursery.NurseryScheduleRecordVo;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/12/19
 * *******************************
 */
@Data
public class DailyScheduleVo {

    private Date date;

    private CoursePlanClasses coursePlanClasses;

    private List<NurseryScheduleRecordVo> records = new ArrayList<>();

    public static DailyScheduleVo of(Date date,List<NurseryScheduleRecordVo> records,CoursePlanClasses coursePlanClasses){
        DailyScheduleVo vo = new DailyScheduleVo();
        vo.setDate(date);
        vo.setRecords(records);
        vo.setCoursePlanClasses(coursePlanClasses);
        return vo;
    }


}
